/**
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

card-fields {
    width: 100%;
}

.extra-card-fields {
    margin: 0;
    padding: 0 5px 5px $tlp-half-spacing;
}

.extra-card-field {
    display: inline-block;
    list-style-type: none;
    font-size: 12px;

    &.large {
        width: 100%;
    }
}

.extra-card-field-content {
    margin: 0 15px 0 0;
}

.extra-card-field-title {
    margin: 0 3px 0 0;
    color: $tlp-ui-dimmed;
}

.extra-card-field-color {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin: 0 3px 0 0;
    border-radius: 50%;

    @each $color-name, $colors in $tlp-swatch-color-map {
        &.card-field-#{$color-name} {
            background-color: map-get($colors, 'primary');
        }
    }
}

.extra-card-field-list-item:not(:last-child)::after {
    content: ', ';
}

.extra-card-field-user > .tlp-avatar-mini {
    margin: 0 3px 0 0;
}
